export const List = ({list,users}) => {
  return <div>
    <table>
      <thead>
      <tr>
        <th>项目</th>
        <th>负责人</th>
      </tr>
      </thead>
      <tbody>
      {
        list.map((elem) =>
          <tr key={elem.id}>
            <td>{elem.name}</td>
            <td>{users.find((user => user.id ===elem.personId))?.name}</td>
          </tr>
        )
      }
      </tbody>
    </table>
  </div>
}